#include "stdafx.h"

#ifndef _Server_h_
#define _Server_h_

#include "MessageIdentifiers.h"
#include "RakPeerInterface.h"
	
#include "RakNetTypes.h"
#include "BitStream.h"
	
#include <string>
#include <iostream>
#include <vector>

class Clients {
	public:
	int id, x, y, z;
	RakNet::RakNetGUID guid;
	
	Clients(int passed_id) :id(passed_id) { }
};

class Server {
	private:
		char* maxPlayers;
		char* serverPort;
		char* serverPassword;

		RakNet::Packet *packet;

		RakNet::BitStream bsOut;
		RakNet::RakString rs;

	public:
		std::vector<Clients> clients;
		RakNet::RakPeerInterface *server;
		//Server::Server();
		void createServer(char* port, char* password, char* maxNumPlayers);
		void receivePackets();
		void terminateServer();
		void serverInfo();
};

#endif